package se19team1e.gui.awt;

import java.awt.Window;

import se19team1e.gui.BaseScreen;
import se19team1e.gui.MessageBox;
import se19team1e.gui.MessageBoxFactory;

/**
 * 
 * An implementation of IMessageBoxFactory that creates real AWT GUI message boxes.
 * 
 * @author lai shiaw san
 *
 */
public class MessageBoxAWTFactory implements MessageBoxFactory {

    /* (non-Javadoc)
     * @see se19team1e.IMessageBoxFactory#createMessageBox(se19team1e.IBaseScreen)
     */
    @Override
    public MessageBox createMessageBox( BaseScreen parent ) {
        return new AWTMessageBox( (Window)parent );
    }

}
